#
# ------指令大厦------
#

# 第1层
    # 1_违禁品_B处理
        # 1_循给所有人的分数设为0
        execute as @a unless score @s 操作员 matches 0 unless score @s 违禁品_忽略列表 matches 0 unless score @s 违禁品_忽略列表_B matches 0 run scoreboard players set @s 违禁品_B处理 0
        # 2_连给玩家周围的违禁品的分数设为-1
        execute as @a[scores={违禁品_B处理=0}] at @s run scoreboard players set @e[type=item,r=3] 违禁品_B处理 -1
        # 3_连除非掉落物是违禁品，执行清除分数
        execute as @e[scores={违禁品_B处理=-1}] unless entity @s[name=刷怪笼] unless entity @s[name=活塞] unless entity @s[name=黏性活塞] unless entity @s[name=凋零骷髅模型] unless entity @s[name=末地传送门框架] unless entity @s[name=空地图] unless entity @s[name=空定位器地图] unless entity @s[name=荧光物品展示框] unless entity @s[name=物品展示框] unless entity @s[name=侦测器] unless entity @s[name=骨粉] unless entity @s[name=风弹] unless entity @s[name=合成器] run scoreboard players reset @s 违禁品_B处理
        # 4_连杀死分数为-1的掉落物
        kill @e[scores={违禁品_B处理=-1}]
        # 5_连除非分数0的玩家拿了违禁品，执行设分数为1
        execute as @a[scores={违禁品_B处理=0}] unless entity @s[hasitem={item=mob_spawner}] unless entity @s[hasitem={item=piston}] unless entity @s[hasitem={item=sticky_piston}] unless entity @s[hasitem={item=skull,data=1}] unless entity @s[hasitem={item=end_portal_frame}] run scoreboard players set @s 违禁品_B处理 1
        # 6_连分数0玩家的t显
        execute as @a[scores={违禁品_B处理=0}] run tellraw @a {"rawtext": [{"text": "§b违禁品§r | 玩家<"},{"selector": "@s"},{"text": "§r>(UID:"},{"score": {"objective": "UID","name": "@s"}},{"text": ")持有 "},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=mob_spawner}]"},{"text": "(U25-B)刷怪笼 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=piston}]"},{"text": "(U29-B)活塞 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=sticky_piston}]"},{"text": "(U30-B)黏性活塞 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=skull,data=1}]"},{"text": "(U31-B)凋零骷髅模型 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=end_portal_frame}]"},{"text": "(U32-B)末地传送门框架 "}]}}]}
        # 7_连除非分数1的玩家拿了违禁品，执行清除分数
        execute as @a[scores={违禁品_B处理=1}] unless entity @s[hasitem={item=empty_map}] unless entity @s[hasitem={item=glow_frame}] unless entity @s[hasitem={item=frame}] unless entity @s[hasitem={item=observer}] unless entity @s[hasitem={item=bone_meal}] unless entity @s[hasitem={item=wind_charge}] unless entity @s[hasitem={item=crafter}] run scoreboard players reset @s 违禁品_B处理
        # 8_连分数1玩家的t显
        execute as @a[scores={违禁品_B处理=1}] run tellraw @a {"rawtext": [{"text": "§b违禁品§r | 玩家<"},{"selector": "@s"},{"text": "§r>(UID:"},{"score": {"objective": "UID","name": "@s"}},{"text": ")持有 "},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=empty_map}]"},{"text": "(U34-B)空地图空定位器地图 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=glow_frame}]"},{"text": "(U54-B)发光物品展示框 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=frame}]"},{"text": "(U55-B)物品展示框 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=observer}]"},{"text": "(U56-B)侦测器 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=bone_meal}]"},{"text": "(U57-B)骨粉 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=wind_charge}]"},{"text": "(U58-B)风弹 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=crafter}]"},{"text": "(U59-B)合成器 "}]}}]}
    # 2_违禁品_C处理
        # 1_循给所有人的分数设为0
        execute as @a unless score @s 操作员 matches 0 unless score @s 违禁品_忽略列表 matches 0 run scoreboard players set @s 违禁品_C处理 0
        # 2_连给玩家周围的违禁品的分数设为-1
        execute as @a[scores={违禁品_C处理=0}] at @s run scoreboard players set @e[type=item,r=3] 违禁品_C处理 -1
        # 3_连除非掉落物是违禁品，执行清除分数
        execute as @e[scores={违禁品_C处理=-1}] unless entity @s[name=打火石] unless entity @s[name=水桶] unless entity @s[name=火焰弹] unless entity @s[name=紫颂果] unless entity @s[name=末影珍珠] unless entity @s[name=发射器] unless entity @s[name=龙蛋] unless entity @s[name=鳕鱼桶] unless entity @s[name=美西螈桶] unless entity @s[name=河豚桶] unless entity @s[name=鲑鱼桶] unless entity @s[name=蝌蚪桶] unless entity @s[name=热带鱼桶] unless entity @s[name=末影之眼] unless entity @s[name=苔藓块] unless entity @s[name=矿车] unless entity @s[name=金合欢船] unless entity @s[name=金合欢木运输船] unless entity @s[name=橡木船] unless entity @s[name=橡木运输船] unless entity @s[name=深色橡木船] unless entity @s[name=深色橡木运输船] unless entity @s[name=白桦木船] unless entity @s[name=白桦木运输船] unless entity @s[name=云杉木运输船] unless entity @s[name=云杉木船] unless entity @s[name=丛林木船] unless entity @s[name=丛林运输船] unless entity @s[name=红树林船] unless entity @s[name=红树木运输船] unless entity @s[name=樱花木船] unless entity @s[name=樱花木运输船] unless entity @s[name=竹筏] unless entity @s[name=运输竹筏] run scoreboard players reset @s 违禁品_C处理
        # 4_连杀死分数为-1的掉落物
        kill @e[scores={违禁品_C处理=-1}]
        # 5_连除非分数0的玩家拿了违禁品，执行设分数为1
        execute as @a[scores={违禁品_C处理=0}] unless entity @s[hasitem={item=flint_and_steel}] unless entity @s[hasitem={item=water_bucket}] unless entity @s[hasitem={item=fire_charge}] unless entity @s[hasitem={item=chorus_fruit}] unless entity @s[hasitem={item=ender_pearl}] unless entity @s[hasitem={item=dispenser}] unless entity @s[hasitem={item=dragon_egg}] unless entity @s[hasitem={item=cod_bucket}] unless entity @s[hasitem={item=axolotl_bucket}] unless entity @s[hasitem={item=pufferfish_bucket}] unless entity @s[hasitem={item=salmon_bucket}] unless entity @s[hasitem={item=tadpole_bucket}] unless entity @s[hasitem={item=tropical_fish_bucket}] unless entity @s[hasitem={item=ender_eye}] unless entity @s[hasitem={item=moss_block}] unless entity @s[hasitem={item=minecart}] unless entity @s[hasitem={item=acacia_boat}] unless entity @s[hasitem={item=acacia_chest_boat}] run scoreboard players set @s 违禁品_C处理 1
        # 6_连分数0玩家的t显
        execute as @a[scores={违禁品_C处理=0}] run tellraw @a {"rawtext":[{"text":"§c违禁品§r | 玩家<"},{"selector":"@s"},{"text":"§r>(UID:"},{"score":{"objective":"UID","name":"@s"}},{"text":")持有 "},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=flint_and_steel}]"},{"text":"(U1-C)打火石 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=water_bucket}]"},{"text":"(U2-C)水桶 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=fire_charge}]"},{"text":"(U5-C)火焰弹 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=chorus_fruit}]"},{"text":"(U9-C)紫颂果 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=ender_pearl}]"},{"text":"(U10-C)末影珍珠 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=dispenser}]"},{"text":"(U11-C)发射器 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=dragon_egg}]"},{"text":"(U12-C)龙蛋 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=cod_bucket}]"},{"text":"(U13-C)桶装鳕鱼 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=axolotl_bucket}]"},{"text":"(U14-C)美西螈桶 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=pufferfish_bucket}]"},{"text":"(U15-C)桶装河豚 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=salmon_bucket}]"},{"text":"(U16-C)桶装鲑鱼 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=tadpole_bucket}]"},{"text":"(U17-C)蝌蚪桶 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=tropical_fish_bucket}]"},{"text":"(U18-C)桶装热带鱼 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=ender_eye}]"},{"text":"(U24-C)末影之眼 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=moss_block}]"},{"text":"(U33-C)苔藓块 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=minecart}]"},{"text":"(U35-C)矿车 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=acacia_boat}]"},{"text":"(U36-C)金合欢船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=acacia_chest_boat}]"},{"text":"(U37-C)金合欢木运输船 "}]}}]}
        # 7_连除非分数1的玩家拿了违禁品，执行清除分数
        execute as @a[scores={违禁品_C处理=1}] unless entity @s[hasitem={item=oak_boat}] unless entity @s[hasitem={item=oak_chest_boat}] unless entity @s[hasitem={item=dark_oak_boat}] unless entity @s[hasitem={item=dark_oak_chest_boat}] unless entity @s[hasitem={item=birch_boat}] unless entity @s[hasitem={item=birch_chest_boat}] unless entity @s[hasitem={item=spruce_chest_boat}] unless entity @s[hasitem={item=spruce_boat}] unless entity @s[hasitem={item=jungle_boat}] unless entity @s[hasitem={item=jungle_chest_boat}] unless entity @s[hasitem={item=mangrove_boat}] unless entity @s[hasitem={item=mangrove_chest_boat}] unless entity @s[hasitem={item=cherry_boat}] unless entity @s[hasitem={item=cherry_chest_boat}] unless entity @s[hasitem={item=bamboo_raft}] unless entity @s[hasitem={item=bamboo_chest_raft}] run scoreboard players reset @s 违禁品_C处理
        # 8_连分数1玩家的t显
        execute as @a[scores={违禁品_C处理=1}] run tellraw @a {"rawtext":[{"text":"§c违禁品§r | 玩家<"},{"selector":"@s"},{"text":"§r>(UID:"},{"score":{"objective":"UID","name":"@s"}},{"text":")持有 "},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=oak_boat}]"},{"text":"(U38-C)橡木船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=oak_chest_boat}]"},{"text":"(U39-C)橡木运输船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=dark_oak_boat}]"},{"text":"(U40-C)深色橡木船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=dark_oak_chest_boat}]"},{"text":"(U41-C)深色橡木运输船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=birch_boat}]"},{"text":"(U42-C)白桦木船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=birch_chest_boat}]"},{"text":"(U43-C)白桦木运输船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=spruce_chest_boat}]"},{"text":"(U44-C)云杉木运输船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=spruce_boat}]"},{"text":"(U45-C)云杉木船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=jungle_boat}]"},{"text":"(U46-C)丛林木船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=jungle_chest_boat}]"},{"text":"(U47-C)丛林运输船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=mangrove_boat}]"},{"text":"(U48-C)红树林船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=mangrove_chest_boat}]"},{"text":"(U49-C)红树木运输船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=cherry_boat}]"},{"text":"(U50-C)樱花木船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=cherry_chest_boat}]"},{"text":"(U51-C)樱花木运输船 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=bamboo_raft}]"},{"text":"(U52-C)竹筏 "}]}},{"translate":"%%2","with":{"rawtext":[{"selector":"@s[hasitem={item=bamboo_chest_raft}]"},{"text":"(U53-C)运输竹筏 "}]}}]}
        # 9_连给分数为0..的人添加C标签
        execute as @a[scores={违禁品_C处理=0..}] run tag @s add C
        # 10_连给分数为0..的人清背包
        execute as @a[scores={违禁品_C处理=0..}] run clear @s
    # 3_违禁品_P处理
        # 1_循给所有人的分数设为0
        execute as @a unless score @s 操作员 matches 0 unless score @s 违禁品_忽略列表 matches 0 run scoreboard players set @s 违禁品_P处理 0
        # 2_连给玩家周围的违禁品的分数设为-1
        execute as @a[scores={违禁品_P处理=0}] at @s run scoreboard players set @e[type=item,r=3] 违禁品_P处理 -1
        # 3_连除非掉落物是违禁品，执行清除分数
        execute as @e[scores={违禁品_P处理=-1}] unless entity @s[name=隐身药水] unless entity @s[name=喷溅型隐身药水] unless entity @s[name=滞留型隐身药水] unless entity @s[name=附魔之瓶] unless entity @s[name=隐身之箭] unless entity @s[name=虫蚀药水] unless entity @s[name=喷溅型虫蚀药水] unless entity @s[name=滞留型虫蚀药水] unless entity @s[name=虫蚀之箭] unless entity @s[name=渗浆药水] unless entity @s[name=喷溅型渗浆药水] unless entity @s[name=滞留型渗浆药水] unless entity @s[name=渗浆之箭] unless entity @s[name=盘丝药水] unless entity @s[name=喷溅型盘丝药水] unless entity @s[name=滞留型盘丝药水] unless entity @s[name=盘丝之箭] run scoreboard players reset @s 违禁品_P处理
        # 4_连杀死分数为-1的掉落物
        kill @e[scores={违禁品_P处理=-1}]
        # 5_连除非分数0的玩家拿了违禁品，执行清除分数
        execute as @a[scores={违禁品_P处理=0}] unless entity @s[hasitem={item=potion,data=7}] unless entity @s[hasitem={item=potion,data=8}] unless entity @s[hasitem={item=splash_potion,data=7}] unless entity @s[hasitem={item=splash_potion,data=8}] unless entity @s[hasitem={item=lingering_potion,data=7}] unless entity @s[hasitem={item=lingering_potion,data=8}] unless entity @s[hasitem={item=experience_bottle}] unless entity @s[hasitem={item=arrow,data=8}] unless entity @s[hasitem={item=arrow,data=9}] unless entity @s[hasitem={item=potion,data=46}] unless entity @s[hasitem={item=splash_potion,data=46}] unless entity @s[hasitem={item=lingering_potion,data=46}] unless entity @s[hasitem={item=arrow,data=47}] unless entity @s[hasitem={item=potion,data=45}] unless entity @s[hasitem={item=splash_potion,data=45}] unless entity @s[hasitem={item=lingering_potion,data=45}] unless entity @s[hasitem={item=arrow,data=46}] unless entity @s[hasitem={item=potion,data=44}] unless entity @s[hasitem={item=splash_potion,data=44}] unless entity @s[hasitem={item=lingering_potion,data=44}] unless entity @s[hasitem={item=arrow,data=45}] run scoreboard players reset @s 违禁品_P处理
        # 6_连分数0玩家的t显
        execute as @a[scores={违禁品_P处理=0}] run tellraw @a {"rawtext": [{"text": "§d违禁品§r | 玩家<"},{"selector": "@s"},{"text": "§r>(UID:"},{"score": {"objective": "UID","name": "@s"}},{"text": ")持有 "},{"translate": "%%2","with": {"rawtext": [{"rawtext": [{"selector": "@s[hasitem={item=potion,data=7}]"},{"selector": "@s[hasitem={item=potion,data=8}]"}]},{"text": "(U19-P)隐身药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"rawtext": [{"selector": "@s[hasitem={item=splash_potion,data=7}]"},{"selector": "@s[hasitem={item=splash_potion,data=8}]"}]},{"text": "(U20-P)喷溅型隐身药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"rawtext": [{"selector": "@s[hasitem={item=lingering_potion,data=7}]"},{"selector": "@s[hasitem={item=lingering_potion,data=8}]"}]},{"text": "(U21-P)滞留型隐身药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=experience_bottle}]"},{"text": "(U22-P)附魔之瓶 "}]}},{"translate": "%%2","with": {"rawtext": [{"rawtext": [{"selector": "@s[hasitem={item=arrow,data=8}]"},{"selector": "@s[hasitem={item=arrow,data=9}]"}]},{"text": "(U23-P)隐身箭 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=potion,data=46}]"},{"text": "(U60-P)虫蚀药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=splash_potion,data=46}]"},{"text": "(U61-P)喷溅型虫蚀药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=lingering_potion,data=46}]"},{"text": "(U62-P)滞留型虫蚀药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=arrow,data=47}]"},{"text": "(U63-P)虫蚀之箭 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=potion,data=45}]"},{"text": "(U64-P)渗浆药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=splash_potion,data=45}]"},{"text": "(U65-P)喷溅型渗浆药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=lingering_potion,data=45}]"},{"text": "(U66-P)滞留型渗浆药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=arrow,data=46}]"},{"text": "(U67-P)渗浆之箭 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=potion,data=44}]"},{"text": "(U68-P)盘丝药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=splash_potion,data=44}]"},{"text": "(U69-P)喷溅型盘丝药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=lingering_potion,data=44}]"},{"text": "(U70-P)滞留型盘丝药水 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=arrow,data=45}]"},{"text": "(U71-P)盘丝之箭 "}]}}]}
        # 7_连给分数为0..的人添加P标签
        execute as @a[scores={违禁品_P处理=0..}] run tag @s add P
        # 8_连给分数为0..的人清背包
        execute as @a[scores={违禁品_P处理=0..}] run clear @s
    # 4_违禁品_T处理
        # 1_循给所有人的分数设为0
        execute as @a unless score @s 操作员 matches 0 unless score @s 违禁品_忽略列表 matches 0 run scoreboard players set @s 违禁品_T处理 0
        # 2_连给玩家周围的违禁品的分数设为-1
        execute as @a[scores={违禁品_T处理=0}] at @s run scoreboard players set @e[type=item,r=3] 违禁品_T处理 -1
        # 3_连除非掉落物是违禁品，执行清除分数
        execute as @e[scores={违禁品_T处理=-1}] unless entity @s[name=熔岩桶] unless entity @s[name=TNT] unless entity @s[name=TNT矿车] unless entity @s[name=重生锚] unless entity @s[name=末地水晶] unless entity @s[name=红色蘑菇] unless entity @s[name=棕色蘑菇] unless entity @s[name=幽匿催发体] run scoreboard players reset @s 违禁品_T处理
        # 4_连杀死分数为-1的掉落物
        kill @e[scores={违禁品_T处理=-1}]
        # 5_连除非分数0的玩家拿了违禁品，执行清除分数
        execute as @a[scores={违禁品_T处理=0}] unless entity @s[hasitem={item=lava_bucket}] unless entity @s[hasitem={item=tnt}] unless entity @s[hasitem={item=tnt_minecart}] unless entity @s[hasitem={item=respawn_anchor}] unless entity @s[hasitem={item=end_crystal}] unless entity @s[hasitem={item=red_mushroom}] unless entity @s[hasitem={item=brown_mushroom}] unless entity @s[hasitem={item=sculk_catalyst}] run scoreboard players reset @s 违禁品_T处理
        # 6_连分数0玩家的t显
        execute as @a[scores={违禁品_T处理=0}] run tellraw @a {"rawtext": [{"text": "§4违禁品§r | 玩家<"},{"selector": "@s"},{"text": "§r>(UID:"},{"score": {"objective": "UID","name": "@s"}},{"text": ")持有 "},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=lava_bucket}]"},{"text": "(U3-T)岩浆桶 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=tnt}]"},{"text": "(U4-T)炸药 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=tnt_minecart}]"},{"text": "(U6-T)TNT矿车 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=respawn_anchor}]"},{"text": "(U7-T)重生锚 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=end_crystal}]"},{"text": "(U8-T)末地水晶 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=red_mushroom}]"},{"text": "(U26-T)红色蘑菇 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=brown_mushroom}]"},{"text": "(U27-T)棕色蘑菇 "}]}},{"translate": "%%2","with": {"rawtext": [{"selector": "@s[hasitem={item=sculk_catalyst}]"},{"text": "(U28-T)幽匿催发体 "}]}}]}
        # 7_连给分数为0..的人添加T标签
        execute as @a[scores={违禁品_T处理=0..}] run tag @s add T
        # 8_连给分数为0..的人清背包
        execute as @a[scores={违禁品_T处理=0..}] run clear @s

# 第2层

    # 1_违禁品_B处理_清除物品

        # 1_清除 刷怪笼
        clear @a[scores={违禁品_B处理=0..}] mob_spawner

        # 2_清除 活塞
        clear @a[scores={违禁品_B处理=0..}] piston

        # 3_清除 粘性活塞
        clear @a[scores={违禁品_B处理=0..}] sticky_piston

        # 4_清除 凋零骷髅模型
        clear @a[scores={违禁品_B处理=0..}] skull 1

        # 5_清除 末地传送门框架
        clear @a[scores={违禁品_B处理=0..}] end_portal_frame
        
        # 6_清除 空地图
        clear @a[scores={违禁品_B处理=0..}] empty_map

        # 7_清除 荧光物品展示框
        clear @a[scores={违禁品_B处理=0..}] glow_frame

        # 8_清除 物品展示框
        clear @a[scores={违禁品_B处理=0..}] frame

        # 9_清除 侦测器
        clear @a[scores={违禁品_B处理=0..}] observer

        # 10_清除 骨粉
        clear @a[scores={违禁品_B处理=0..}] bone_meal

        # 11_清除 风弹
        clear @a[scores={违禁品_B处理=0..}] wind_charge

        # 12_清除 合成器
        clear @a[scores={违禁品_B处理=0..}] crafter

    # 2_拦截滞留药水

        # 1_滞留药水拦截提示
        execute at @e[type=lingering_potion] as @p[r=4] unless score @s 操作员 matches 0 run tellraw @a {"rawtext": [{"text": "| 玩家<"},{"selector": "@s"},{"text": "§r>(UID:"},{"score": {"objective": "UID","name": "@s"}},{"text": ")试图扔出滞留药水，已拦截"}]}

        # 2_杀死滞留药水
        execute at @a unless score @p 操作员 matches 0 run kill @e[type=lingering_potion,r=4]

    # 3_维度检测

        #1_主世界
        execute in overworld run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 0

        #2_下界
        execute in nether run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 1

        #3_末地
        execute in the_end run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 2

        #4_dm3
        execute in dm3 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 3

        #5_dm4
        execute in dm4 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 4

        #6_dm5
        execute in dm5 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 5

        #7_dm6
        execute in dm6 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 6

        #8_dm7
        execute in dm7 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 7

        #9_dm8
        execute in dm8 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 8

        #10_dm9
        execute in dm9 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 9

        #11_dm10
        execute in dm10 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 10

        #12_dm11
        execute in dm11 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 11

        #13_dm12
        execute in dm12 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 12

    # 4_维度检测

        #14_dm13
        execute in dm13 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 13

        #15_dm14
        execute in dm14 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 14

        #16_dm15
        execute in dm15 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 15

        #17_dm16
        execute in dm16 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 16

        #18_dm17
        execute in dm17 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 17

        #19_dm18
        execute in dm18 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 18

        #20_dm19
        execute in dm19 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 19

        #21_dm20
        execute in dm20 run scoreboard players set @e[r=99999999999999999999999999999999999] 维度 20
    
    # 5_小游戏_靶场

        # 1_如果没有矿车则清空备选区
        execute in dm9 positioned -71 -56 -121 unless entity @e[r=1.5,type=minecart] run kill @e[r=1.5]

        # 2_如果没有村民则清空备选区
        execute in dm9 positioned -71 -56 -121 unless entity @e[r=1.5,type=villager] run kill @e[r=1.5]
        
        # 3_在村民备选区生成一个村民
        execute in dm9 positioned -71 -56 -121 unless entity @e[r=1.5,type=villager] run summon villager

        # 4_有条件_给这个村民施加伤害19 ！！！注意，这条是有条件的！！！
        execute in dm9 positioned -71 -56 -121 run damage @e[r=1.5,type=villager] 19

        # 5_有条件_给这个村民剧毒效果   ！！！注意，这条是有条件的！！！
        execute in dm9 positioned -71 -56 -121 run effect @e[r=1.5,type=villager] poison 1000000 255 true

        # 6_有条件_生成一个矿车         ！！！注意，这条是有条件的！！！
        execute in dm9 positioned -71 -56 -121 run summon minecart

        # 7_脱离矿车的村民自杀
        execute in dm9 positioned -70 -58 -231 as @e[type=villager,dx=25,dz=116] at @s unless entity @e[r=1,type=minecart] run kill @s

        # 8_第一行移动标靶如果没有矿车则从备选区传送一个带村民的矿车至铁轨左侧
        execute in dm9 positioned -67 -57 -133 unless entity @e[type=minecart,dx=18] run tp @e[x=-71,y=-56,z=-121,dx=0,dy=0,dz=0,type=minecart] -67 -57 -133

        # 9_如果矿车上没有村民，则停止备选区村民的骑乘
        execute in dm9 positioned -67 -57 -133 as @e[dx=18,type=minecart] at @s unless entity @e[type=villager,r=1] positioned -71 -56 -121 run ride @e[r=1.5,type=villager] stop_riding

        # 10_接上，让备选区的村民骑乘到矿车上
        execute in dm9 positioned -67 -57 -133 as @e[dx=18,type=minecart] at @s unless entity @e[type=villager,r=1] positioned -71 -56 -121 as @e[r=1.5,type=villager] positioned -67 -57 -133 run ride @s start_riding @e[type=minecart,dx=18]

        # 11_第二行移动标靶如果没有矿车则从备选区传送一个带村民的矿车至铁轨右侧
        execute in dm9 positioned -67 -57 -146 unless entity @e[type=minecart,dx=18] run tp @e[x=-71,y=-56,z=-121,dx=0,dy=0,dz=0,type=minecart] -50 -57 -146

        # 12_如果矿车上没有村民，则停止备选区村民的骑乘
        execute in dm9 positioned -67 -57 -146 as @e[dx=18,type=minecart] at @s unless entity @e[type=villager,r=1] positioned -71 -56 -121 run ride @e[r=1.5,type=villager] stop_riding

        # 13_接上，让备选区的村民骑乘到矿车上
        execute in dm9 positioned -67 -57 -146 as @e[dx=18,type=minecart] at @s unless entity @e[type=villager,r=1] positioned -71 -56 -121 as @e[r=1.5,type=villager] positioned -67 -57 -146 run ride @s start_riding @e[type=minecart,dx=18]

        # 14_第三行移动标靶如果没有矿车则从备选区传送一个带村民的矿车至铁轨右侧
        execute in dm9 positioned -67 -57 -159 unless entity @e[type=minecart,dx=18] run tp @e[x=-71,y=-56,z=-121,dx=0,dy=0,dz=0,type=minecart] -67 -57 -159

        # 15_如果矿车上没有村民，则停止备选区村民的骑乘
        execute in dm9 positioned -67 -57 -159 as @e[dx=18,type=minecart] at @s unless entity @e[type=villager,r=1] positioned -71 -56 -121 run ride @e[r=1.5,type=villager] stop_riding

    # 6_小游戏_靶场

        # 16_接上，让备选区的村民骑乘到矿车上
        execute in dm9 positioned -67 -57 -159 as @e[dx=18,type=minecart] at @s unless entity @e[type=villager,r=1] positioned -71 -56 -121 as @e[r=1.5,type=villager] positioned -67 -57 -159 run ride @s start_riding @e[type=minecart,dx=18]

        # 17_第四行移动标靶如果没有矿车则从备选区传送一个带村民的矿车至铁轨右侧
        execute in dm9 positioned -67 -57 -172 unless entity @e[type=minecart,dx=18] run tp @e[x=-71,y=-56,z=-121,dx=0,dy=0,dz=0,type=minecart] -50 -57 -172

        # 18_如果矿车上没有村民，则停止备选区村民的骑乘
        execute in dm9 positioned -67 -57 -172 as @e[dx=18,type=minecart] at @s unless entity @e[type=villager,r=1] positioned -71 -56 -121 run ride @e[r=1.5,type=villager] stop_riding

        # 19_接上，让备选区的村民骑乘到矿车上
        execute in dm9 positioned -67 -57 -172 as @e[dx=18,type=minecart] at @s unless entity @e[type=villager,r=1] positioned -71 -56 -121 as @e[r=1.5,type=villager] positioned -67 -57 -172 run ride @s start_riding @e[type=minecart,dx=18]

    # 7_黑名单计数

        # ！1-3部分是新增黑名单部分，4-6是移出黑名单部分

        # 1_给"基准数"的"黑名单_计数器"+1
        execute as @a[tag=K] unless score @s 黑名单_标记 matches 0 run scoreboard players add 基准数 黑名单_计数器 1

        # 2_玩家加入黑名单时，聊天栏提示
        execute as @a[tag=K] unless score @s 黑名单_标记 matches 0 run tellraw @a {"rawtext": [{"text": "§7黑名单§r | 成功将<"},{"selector": "@s"},{"text": ">(UID:"},{"score": {"objective": "UID","name": "@s"}},{"text": ")加入黑名单，当前黑名单共"},{"score": {"objective": "黑名单_计数器","name": "基准数"}},{"text": "人"}]}

        # 3_将玩家的"黑名单_标记"设为0
        execute as @a[tag=K] unless score @s 黑名单_标记 matches 0 run scoreboard players set @s 黑名单_标记 0

        # 4_给"基准数"的"黑名单_计数器"-1
        execute as @a[scores={黑名单_标记=0}] unless entity @s[tag=K] run scoreboard players remove 基准数 黑名单_计数器 1

        # 5_玩家移出黑名单时，聊天栏提示
        execute as @a[scores={黑名单_标记=0}] unless entity @s[tag=K] run tellraw @a {"rawtext": [{"text": "§7黑名单§r | 成功将<"},{"selector": "@s"},{"text": ">(UID:"},{"score": {"objective": "UID","name": "@s"}},{"text": ")移出黑名单，当前黑名单共"},{"score": {"objective": "黑名单_计数器","name": "基准数"}},{"text": "人"}]}
        
        # 6_将玩家的"黑名单_标记"重置
        execute as @a[scores={黑名单_标记=0}] unless entity @s[tag=K] run scoreboard players reset @s 黑名单_标记

# 第三层

    # 1_UID分配

        #1_检测无UID的玩家，放入等待区
        execute as @a unless score @s UID matches 1.. run scoreboard players set @s UID -1

        #2_随机挑选一位等待区内的玩家
        execute unless entity @a[scores={UID=0}] as @r[scores={UID=-1}] run scoreboard players set @s UID 0

        #3_as UID 为 0 的玩家，基准数+1
        execute as @r[scores={UID=0}] run scoreboard players add 基准数 UID_基准数 1

        #4_as UID 为 0 的玩家，UID = 基准数（分配UID）
        execute as @r[scores={UID=0}] run scoreboard players operation @s UID = 基准数 UID_基准数

    # 2_只清除不惩罚的违禁品

        #1_禁用 木斧
        execute as @a unless score @s 管理员 matches 0 run clear @s wooden_axe

        #2_禁用 石斧
        execute as @a unless score @s 管理员 matches 0 run clear @s stone_axe

        #3_禁用 铁斧
        execute as @a unless score @s 管理员 matches 0 run clear @s iron_axe

        #4_禁用 金斧
        execute as @a unless score @s 管理员 matches 0 run clear @s golden_axe

        #5_禁用 钻石斧
        execute as @a unless score @s 管理员 matches 0 run clear @s diamond_axe

        #6_禁用 下界合金斧
        execute as @a unless score @s 管理员 matches 0 run clear @s netherite_axe

        #7_禁用 木锹
        execute as @a unless score @s 管理员 matches 0 run clear @s wooden_shovel

        #8_禁用 石锹
        execute as @a unless score @s 管理员 matches 0 run clear @s stone_shovel

        #9_禁用 铁锹
        execute as @a unless score @s 管理员 matches 0 run clear @s iron_shovel

        #10_禁用 金锹
        execute as @a unless score @s 管理员 matches 0 run clear @s golden_shovel

        #11_禁用 钻石锹
        execute as @a unless score @s 管理员 matches 0 run clear @s diamond_shovel

        #12_禁用 下界合金锹
        execute as @a unless score @s 管理员 matches 0 run clear @s netherite_shovel

        #13_禁用 木锄头
        execute as @a unless score @s 管理员 matches 0 run clear @s wooden_hoe

        #14_禁用 石锄头
        execute as @a unless score @s 管理员 matches 0 run clear @s stone_hoe

    # 3_只清除不惩罚的违禁品

        #15_禁用 铁锄头
        execute as @a unless score @s 管理员 matches 0 run clear @s iron_hoe

        #16_禁用 金锄头
        execute as @a unless score @s 管理员 matches 0 run clear @s golden_hoe

        #17_禁用 钻石锄头
        execute as @a unless score @s 管理员 matches 0 run clear @s diamond_hoe

        #18_禁用 下界合金锄头
        execute as @a unless score @s 管理员 matches 0 run clear @s netherite_hoe

    # 4_模组物品禁用

        #1_吉利服
        execute as @a unless score @s "操作员" matches 0 run clear @s tsc_firearms:jlf_chestplate

        #2_燃烧弹
        execute as @a unless score @s "操作员" matches 0 run clear @s tsc_firearms:flame_bomb

        #3_座位
        execute as @a unless score @s "操作员" matches 0 run clear @s davincisvessels:seat

        #4_控制台
        execute as @a unless score @s "操作员" matches 0 run clear @s davincisvessels:console

    # 5_无权限者闯入指令区处理（指令区通行证）

        # 1_假设所有人都有通行证
        scoreboard players set @a 指令区通行证 0

        # 2_不在名单内的人去除通行证
        execute as @a unless entity @s[scores={UID=1},name=不吃乆菜] unless entity @s[scores={UID=2},name=8Man_24Man] unless entity @s[scores={UID=3},name=紫凉猫猫] unless entity @s[scores={UID=16},name=摩羯梧桐的末影珠] unless entity @s[scores={UID=17},name=likeamufasa] unless entity @s[scores={UID=6},name=我是冷天君啊] run scoreboard players reset @s 指令区通行证

        # 3_无通行证但在指令区的人，聊天栏提示
        execute as @a[scores={维度=20}] unless entity @s [scores={指令区通行证=0}] run tellraw @a {"rawtext": [{"text": "| 无权限玩家<"},{"selector": "@s"},{"text": "§r>(UID:"},{"score": {"objective": "UID","name": "@s"}},{"text": ")闯入指令区，已赶至传送大厅"}]}

        # 4_把无通行证但在指令区的人传送至传送大厅
        execute as @a[scores={维度=20}] unless entity @s [scores={指令区通行证=0}] in dm17 run tp 90 240 96

        # 5_给所有人清除 管理员 标签（遗留的东西）
        tag @a remove 管理员

    # 6_成就-世界上最浪漫的位置

        # 1_聊天栏成就提示
        execute as @a at @s as @s[x=1314520,dx=0,z=1314520,dz=0] unless score @s 成就-世界上最浪漫的位置 matches 0 run tellraw @a  {"rawtext":[{"selector":"@s"},{"text":"取得了进度§a[世界上最浪漫的位置]"}]}

        # 2_音效
        execute as @a at @s as @s[x=1314520,dx=0,z=1314520,dz=0] unless score @s 成就-世界上最浪漫的位置 matches 0 run playsound random.levelup @a
        # 3_设置分数（防止重复获取成就）

        execute as @a at @s as @s[x=1314520,dx=0,z=1314520,dz=0] unless score @s 成就-世界上最浪漫的位置 matches 0 run scoreboard players set @s 成就-世界上最浪漫的位置 0
    
    # 7_快捷旁观模式

        # 1_进入音效
        execute as @a[hasitem={item=ender_eye,location=slot.weapon.mainhand},m=!spectator,rx=-88] if score @s 操作员 matches 0 at @s run playsound random.levelup @s ~~~ 1 1.5

        # 2_抬头进入
        execute as @a[hasitem={item=ender_eye,location=slot.weapon.mainhand},m=!spectator,rx=-88] if score @s 操作员 matches 0 run gamemode spectator @s

        # 3_退出音效
        execute as @a[m=spectator,rxm=88] at @s if score @s 操作员 matches 0 run playsound random.levelup @s ~~~ 1 1.5

        # 4_低头退出
        execute as  @a[m=spectator,rxm=88] if score @s 操作员 matches 0 run gamemode c @s

        # 5_进入标题
        execute as @a[hasitem={item=ender_eye,location=slot.weapon.mainhand},m=!spectator] if score @s 操作员 matches 0 run title @s actionbar §i- §b抬头进入 §i| §i观察者模式 §i-

        #6_退出标题
        execute as @a[hasitem={item=ender_eye,location=slot.weapon.mainhand},m=spectator] if score @s 操作员 matches 0 run title @s actionbar §i- §c低头退出 §i| §i切换手持可关闭此提示 §i-
# 第四层

    # 1_玩家周围实体超过上限自动清除

        # 1_重置所有玩家的实体计数
        scoreboard players reset @a 玩家周围实体数量

        # 2_计算每个实体周围200格内的玩家，并为这些玩家增加实体计数
        execute as @e[type=!player,type=!item] at @s run scoreboard players add @a[r=200] 玩家周围实体数量 1

        # 3_当玩家周围实体数量超过250时，清除周围200格内的非关键实体
        execute as @a[scores={玩家周围实体数量=250..}] at @s run kill @e[r=200,type=!player,type=!item,type=!painting,type=!npc]

    

    